home *** CD-ROM | disk | FTP | other *** search
- include lmacros.h
- assume ds:dataseg
- public sssave,spsave,intstk,doret
-
- ; pc0vec - PC-100 card #0 interrupt handler
- public pcint_,pc0vec_,getintds
-
- pc0vec_ proc far
- push ds ; save on user stack
- call getintds ; establish interrupt data segment
-
- mov ds:sssave,ss ; stash user stack context
- mov ds:spsave,sp
-
- push ds
- pop ss
- lea sp,intstk+512
-
- push ax ; save user regs on interrupt stack
- push bx
- push cx
- push dx
- push bp
- push si
- push di
- push es
- push ds
- pop es
-
- mov ax,0 ; arg for service routine
- push ax
- call pcint_
- pop ax
- jmp doret
- pc0vec_ endp
-
- end
-